<div class="colone">
    <h2>Encoder</h2>
    <p>The Wiring Encoder library allows for easily reading and writing a position 
    or angle from an encoder. </p>
    
  <p>The encoders are sensors used to track the position or rotation rate of a shaft. Encoders generate pulses when moved, on each pulse triggering an event on the Wiring I/O board, for this reason the phaseA pin of an encoder can only be connected to a Wiring pin capable of generating external interrupts. The Encoder library works on External interrupt pins.</p>
    <p>On Wiring v1 boards the external interrupts capable pins are: 0, 1, 2, 3, 36, 37, 38 and 39 named EI0, EI1, .. EI7 respectively<br />
      On Wiring S board the external interrupts capable pins are: 2, 3 and 18 named EI0, EI1 and EI2 respectively.</p>
    <p>&nbsp;</p>
</div>

<div class="twocol"> 
  <p><span class="blink"><a href="Encoder.html">Encoder()</a><br />
Class for manipulating encoders attached to the Wiring hardware.</span></p>
	
	<p><a href="Encoder_attach_.html">attach()</a> <br />
	  Attaches an encoder variable to an encoder connected to a pin.</p>
	<p><a href="Encoder_detach_.html">detach()</a> <br />
	  detaches an encoder variable from a pin.</p>
	<p><a href="Encoder_read_.html">read()</a> <br />
	  Reads the encoder position or angle.</p>
	<p><a href="Encoder_write_.html">write()</a> <br />
	  Sets the encoder position or angle.</p>
	<p><a href="Encoder_attached_.html">attached()</a> <br />
  Returns whether or not en encoder is attached to a pin.<br />
  </p>
</div>

<div class="full">
<p></div>
